<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<html>
<head>
<link rel="stylesheet" type="text/css" href="common/css/allUser.css">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<!-- <link rel="stylesheet" href="../component/bootstrap-3.3.7-dist/css/bootstrap.css"> -->
<title>Scheduing backGround</title>
<style>
	.schedule-table{
		border: 1px solid #ddd;
    	width: 100%;
    	text-align: left;
	}
	.schedule-table tr{
		border-bottom:1px solid #ddd;
	}
 	.schedule-table td{
		padding:10px 5px;
	}
	.edit,.delete{
	    padding: 5px 10px;
	    border: 1px solid #ddd;
	    background: #fff;
	    border-radius: 3px;
	    color: #33AECC;
	}
	.edit{
		margin-right:10px;
	}
</style>
</head>
<body>
<div class="product-header-content">
		<div class="logo">
			<img src="common/images/logoLeft.png">
		</div>
		<div class="logoRight">
			<img src="common/images/logoRight.png">
		</div>
</div>

<div class="header">
	<header class="layout-header">
		<span class="header-logo" style="display: block;text-align: right;font-size: 22px;padding-right:32px">High performance.Delivered</span>
		 
	</header>
</div>

<div style="text-align:right;margin-right:20px;">
	<input type="button" value="Add" style="width: 60px;height: 32px;border: 1px solid #ddd;border-radius: 3px;margin: 20px;background: #fff;" onclick="window.location='forwardToAddSchedulingPage.action'" />
</div>	
<div style="width:80%;margin:0 auto">
  <table class="table table-bordered schedule-table">
    <thead>
      <tr>
		<td>schedule_id</td>
		<td>schedule_name</td>
		<td>client</td>
		<td>project</td>
		<td>role</td>
		<td>startDate</td>
		<td>endDate</td>
		<td>mycvResume</td>
		<td>user_id</td>
		<td>Actions</td>
	  </tr>
    </thead>
    <tbody>
      <c:forEach items="${listView}" var="scheduling">
	      <tr>
			<td>${scheduling.schedule_id} </td>
			<td>${scheduling.schedule_name}</td>
			<td>${scheduling.client}</td>
			<td>${scheduling.project}</td>
			<td>${scheduling.role}</td>
			<td><fmt:formatDate value="${scheduling.startDate}" pattern="MMM dd,yyyy" /></td>
			<td><fmt:formatDate value="${scheduling.endDate}" pattern="MMM dd,yyyy" /></td>
			<td><fmt:formatDate value="${scheduling.mycvResume}" pattern="MMM dd,yyyy" /></td>
			<td>${scheduling.user_id}</td>
			<td>
			<input type="button" value="Edit" class="edit" onclick="window.location='goToEditSchedulingPage.action?schedule_id=${scheduling.schedule_id}'"/>
			<input type="button" value="Delete" class="delete"onclick="window.location='deleteScheduling.action?schedule_id=${scheduling.schedule_id}'"/>					
			</td>
	       </tr>
       </c:forEach>
    </tbody>
  </table>
	
<div class="navi" style="width: 100%;text-align:right;padding-top: 20px;">
   	<a href="searchPage.action?number=1">首页</a>
	<a href="searchPage.action?number=${number-1}">上一页</a>
	<a href="searchPage.action?number=${number+1}">下一页</a>
	<a href="searchPage.action?number=${count}">尾页</a>
	<font>当前${number}/${count}页</font>
</div>
</div>	
</body>
</html>